package com.hd.manager;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableAsync
@EnableScheduling  // 开启定时任务
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)  //核心注解，目的是开启自动配置
@EnableCaching  //实现缓存
@EnableConfigurationProperties //使使用 @ConfigurationProperties 注解的类生效
@ComponentScan(basePackages = {"com.hd.manager", "com.hd.appcommon","com.hd.hdxgddcommon"})
@ServletComponentScan //Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册
public class HdxgHfscApplication {


	public static void main(String[] args) {
		SpringApplication.run(HdxgHfscApplication.class, args);
	}

}
